<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>1101: Tools.RSACryption类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespace_tools.html">Tools</a>      </li>
      <li><a class="el" href="class_tools_1_1_r_s_a_cryption.html">RSACryption</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">公有成员</a>  </div>
  <div class="headertitle">
<h1>Tools.RSACryption类参考</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Tools::RSACryption" -->
<p>RSA加密解密及RSA签名和验证  
<a href="#_details">更多...</a></p>

<p><a href="class_tools_1_1_r_s_a_cryption-members.html">所有成员的列表。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_r_s_a_cryption.html#aaf903414d0a517bb7e2cc17e7484a7d3">RSAKey</a> (out string xmlKeys, out string xmlPublicKey)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">RSA 的密钥产生 产生私钥 和公钥  <a href="#aaf903414d0a517bb7e2cc17e7484a7d3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac9e8e8f8b92eef3987c24fbad1ee9aa"></a><!-- doxytag: member="Tools::RSACryption::RSAEncrypt" ref="aac9e8e8f8b92eef3987c24fbad1ee9aa" args="(string xmlPublicKey, string m_strEncryptString)" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>RSAEncrypt</b> (string xmlPublicKey, string m_strEncryptString)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a870fc5b3c7b58f13729651bb84f9f28a"></a><!-- doxytag: member="Tools::RSACryption::RSAEncrypt" ref="a870fc5b3c7b58f13729651bb84f9f28a" args="(string xmlPublicKey, byte[] EncryptString)" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>RSAEncrypt</b> (string xmlPublicKey, byte[] EncryptString)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae950139e8d60b61415f506fa2d097265"></a><!-- doxytag: member="Tools::RSACryption::RSADecrypt" ref="ae950139e8d60b61415f506fa2d097265" args="(string xmlPrivateKey, string m_strDecryptString)" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>RSADecrypt</b> (string xmlPrivateKey, string m_strDecryptString)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ba58a6f3ef74e0f00b30068fab2bf28"></a><!-- doxytag: member="Tools::RSACryption::RSADecrypt" ref="a4ba58a6f3ef74e0f00b30068fab2bf28" args="(string xmlPrivateKey, byte[] DecryptString)" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>RSADecrypt</b> (string xmlPrivateKey, byte[] DecryptString)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2114bd4c6e483cd315c35f074a40461c"></a><!-- doxytag: member="Tools::RSACryption::GetHash" ref="a2114bd4c6e483cd315c35f074a40461c" args="(string m_strSource, ref byte[] HashData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetHash</b> (string m_strSource, ref byte[] HashData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27634fae2c70378c74c7af3b8a3671f9"></a><!-- doxytag: member="Tools::RSACryption::GetHash" ref="a27634fae2c70378c74c7af3b8a3671f9" args="(string m_strSource, ref string strHashData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetHash</b> (string m_strSource, ref string strHashData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af605f9f6c57f3a490894b94132824f1d"></a><!-- doxytag: member="Tools::RSACryption::GetHash" ref="af605f9f6c57f3a490894b94132824f1d" args="(System.IO.FileStream objFile, ref byte[] HashData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetHash</b> (System.IO.FileStream objFile, ref byte[] HashData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a703136079e3c1e1b9282b21dff91c00c"></a><!-- doxytag: member="Tools::RSACryption::GetHash" ref="a703136079e3c1e1b9282b21dff91c00c" args="(System.IO.FileStream objFile, ref string strHashData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>GetHash</b> (System.IO.FileStream objFile, ref string strHashData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad7a55b36e874848c42d29c2b1745b4df"></a><!-- doxytag: member="Tools::RSACryption::SignatureFormatter" ref="ad7a55b36e874848c42d29c2b1745b4df" args="(string p_strKeyPrivate, byte[] HashbyteSignature, ref byte[] EncryptedSignatureData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureFormatter</b> (string p_strKeyPrivate, byte[] HashbyteSignature, ref byte[] EncryptedSignatureData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a83803338b649137bd090fec5c19d1c7c"></a><!-- doxytag: member="Tools::RSACryption::SignatureFormatter" ref="a83803338b649137bd090fec5c19d1c7c" args="(string p_strKeyPrivate, byte[] HashbyteSignature, ref string m_strEncryptedSignatureData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureFormatter</b> (string p_strKeyPrivate, byte[] HashbyteSignature, ref string m_strEncryptedSignatureData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a7878d22d2766d01efe5e8f7cb923f8"></a><!-- doxytag: member="Tools::RSACryption::SignatureFormatter" ref="a4a7878d22d2766d01efe5e8f7cb923f8" args="(string p_strKeyPrivate, string m_strHashbyteSignature, ref byte[] EncryptedSignatureData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureFormatter</b> (string p_strKeyPrivate, string m_strHashbyteSignature, ref byte[] EncryptedSignatureData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ecc041d89307dbb604312b6b2189dfc"></a><!-- doxytag: member="Tools::RSACryption::SignatureFormatter" ref="a6ecc041d89307dbb604312b6b2189dfc" args="(string p_strKeyPrivate, string m_strHashbyteSignature, ref string m_strEncryptedSignatureData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureFormatter</b> (string p_strKeyPrivate, string m_strHashbyteSignature, ref string m_strEncryptedSignatureData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a83e8221158bb5bb85f3f1069c8757c85"></a><!-- doxytag: member="Tools::RSACryption::SignatureDeformatter" ref="a83e8221158bb5bb85f3f1069c8757c85" args="(string p_strKeyPublic, byte[] HashbyteDeformatter, byte[] DeformatterData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureDeformatter</b> (string p_strKeyPublic, byte[] HashbyteDeformatter, byte[] DeformatterData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4957f407d4ddab436a470c24b26c3493"></a><!-- doxytag: member="Tools::RSACryption::SignatureDeformatter" ref="a4957f407d4ddab436a470c24b26c3493" args="(string p_strKeyPublic, string p_strHashbyteDeformatter, byte[] DeformatterData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureDeformatter</b> (string p_strKeyPublic, string p_strHashbyteDeformatter, byte[] DeformatterData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af4e4f1bfc62042087a749f3130b8f456"></a><!-- doxytag: member="Tools::RSACryption::SignatureDeformatter" ref="af4e4f1bfc62042087a749f3130b8f456" args="(string p_strKeyPublic, byte[] HashbyteDeformatter, string p_strDeformatterData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureDeformatter</b> (string p_strKeyPublic, byte[] HashbyteDeformatter, string p_strDeformatterData)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad6fb8a826642ed1acca4848e3a62d91a"></a><!-- doxytag: member="Tools::RSACryption::SignatureDeformatter" ref="ad6fb8a826642ed1acca4848e3a62d91a" args="(string p_strKeyPublic, string p_strHashbyteDeformatter, string p_strDeformatterData)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>SignatureDeformatter</b> (string p_strKeyPublic, string p_strHashbyteDeformatter, string p_strDeformatterData)</td></tr>
</table>
<hr/><a name="_details"></a><h2>详细描述</h2>
<p>RSA加密解密及RSA签名和验证 </p>
<hr/><h2>成员函数文档</h2>
<a class="anchor" id="aaf903414d0a517bb7e2cc17e7484a7d3"></a><!-- doxytag: member="Tools::RSACryption::RSAKey" ref="aaf903414d0a517bb7e2cc17e7484a7d3" args="(out string xmlKeys, out string xmlPublicKey)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Tools.RSACryption.RSAKey </td>
          <td>(</td>
          <td class="paramtype">out string&#160;</td>
          <td class="paramname"> <em>xmlKeys</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out string&#160;</td>
          <td class="paramname"> <em>xmlPublicKey</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>RSA 的密钥产生 产生私钥 和公钥 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">xmlKeys</td><td></td></tr>
    <tr><td class="paramname">xmlPublicKey</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成：<ul>
<li>D:/Project/1101/Tools/EncryptHelper.cs</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>名字空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>属性</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at Sun Apr 10 2011 19:47:51 for 1101 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
